import request from '@/utils/request';

// 获取组织列表
export function DeptListNoPermission(query) {
	return request({
		url: '/system/dept/listNoPermission',
		method: 'get',
		params: query,
	});
}
// 获取组织列表
export function DeptList(query) {
	return request({
		url: '/system/dept/list',
		method: 'get',
		params: query,
	});
}
// 获取司机列表
export function DriverList(query) {
	return request({
		url: '/driver/driver/list',
		method: 'get',
		params: query,
	});
}

// 获取司机列表
export function SupplierList(query) {
	return request({
		url: '/supplier/supplier/list',
		method: 'get',
		params: query,
	});
}

export function TemplateList(query) {
	return request({
		url: '/contractTemplate/contractTemplateOther/queryList',
		method: 'get',
		params: query,
	});
}
export const templateUrl = `/system/templateFile/download/`;

export function getDicts(dictType) {
	return request({
		url: '/system/dict/data/type/' + dictType,
		method: 'get',
	});
}
// 品牌
export function getBrandName(data) {
	return request({
		url: `/car/carBrand/getBrandNameByIds`,
		method: 'post',
		data: data,
	});
}
// 车系
export function getSeriesName(data) {
	return request({
		url: `/car/carSeries/getSeriesNameByIds`,
		method: 'post',
		data: data,
	});
}

// 车型
export function getModelName(data) {
	return request({
		url: `/car/carModel/getModelNameByIds`,
		method: 'post',
		data: data,
	});
}
// 车辆接口
export function QuotaCarTypeList(query) {
	return request({
		url: '/quoter/scheme/carModel/pageQuery',
		method: 'post',
		data: query,
	});
}
// 车辆接口
export function CarList(query) {
	return request({
		url: '/car/carBasic/getCarList',
		method: 'get',
		params: query,
	});
}
// 查询客户列表
export function UserList(query) {
	return request({
		url: '/customer/customer/list',
		method: 'get',
		params: query,
	});
}

// 查询客户列表
export function UserNoList(query) {
	return request({
		url: '/customer/customer/unrestrictedList',
		method: 'get',
		params: query,
	});
}
